﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CodeGenerator.CSharp
{
    public class ConditionalCompilation : CodeUnit
    {

        public ConditionalCompilation(string name) : base(name) { } 

        public override string ToString()
        {
            CodeBuilder Code = new CodeBuilder();
            Code.Add("#if " + this.Name);
            Code.Add(this.CodeUnits.ToString());
            Code.Add("#endif");
            return Code.ToString();
        }
    }
}
